﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style>
    html, body {
        height: 100%;
        margin: 100px;
        padding: 0px
    }
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link href="LibreriasScript/bootstrap-3.1.1-dist/css/bootstrap-theme.min.css" rel="stylesheet" />
    <link href="LibreriasScript/bootstrap-3.1.1-dist/css/bootstrap.min.css" rel="stylesheet" />
    <script src="LibreriasScript/JQuery/jquery-1.11.0.min.js"></script>
    <script src="LibreriasScript/bootstrap-3.1.1-dist/js/bootstrap.min.js"></script>    
    <script src="LibreriasScript/FuncionesAsignarRutas.js"></script>
    <link rel="stylesheet" href="LibreriasScript/jqwidgets/styles/jqx.base.css" type="text/css" />
    <script type="text/javascript" src="LibreriasScript/jqwidgets/jqxcore.js"></script>
    <script type="text/javascript" src="LibreriasScript/jqwidgets/jqxdata.js"></script>
    <script type="text/javascript" src="LibreriasScript/jqwidgets/jqxbuttons.js"></script>
    <script type="text/javascript" src="LibreriasScript/jqwidgets/jqxscrollbar.js"></script>
    <script type="text/javascript" src="LibreriasScript/jqwidgets/jqxlistbox.js"></script>
    <script type="text/javascript" src="LibreriasScript/jqwidgets/jqxdropdownlist.js"></script>
    <script type="text/javascript" src="LibreriasScript/jqwidgets/jqxmenu.js"></script>
    <script type="text/javascript" src="LibreriasScript/jqwidgets/jqxgrid.js"></script>
    <script type="text/javascript" src="LibreriasScript/jqwidgets/jqxgrid.filter.js"></script>
    <script type="text/javascript" src="LibreriasScript/jqwidgets/jqxgrid.sort.js"></script>
    <script type="text/javascript" src="LibreriasScript/jqwidgets/jqxgrid.selection.js"></script>
    <script type="text/javascript" src="LibreriasScript/jqwidgets/jqxcalendar.js"></script>
    <script type="text/javascript" src="LibreriasScript/jqwidgets/jqxdatetimeinput.js"></script>
    <script type="text/javascript" src="LibreriasScript/jqwidgets/jqxcheckbox.js"></script>
    <script type="text/javascript" src="LibreriasScript/jqwidgets/demos.js"></script>
    <title>JusTime</title>
</head>
<body onload="CargarElementos()">
    <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a href="Home.html" class ="navbar-brand" style="width:150px; height:65px"><img src="Recursos/JusTimeHome.png" height="auto" width=100%" /></a>
            </div>
            <div class="collapse navbar-collapse">
                <br />
                <ul class="nav navbar-nav">
                    <li><a data-toggle="modal" data-target="#Agregar"><span class="glyphicon glyphicon-pencil">   </span>   Agregar</a></li>
                </ul>
            </div><!--/.nav-collapse --> 
        </div>
    </div>
    <div>
    <div align="center">
        <h2>Asignacion de buses</h2>
        <div id="jqxgrid"></div>
        <input style="margin-top: 10px;" value="Restaurar" id="clearfilteringbutton" type="button" />
    </div>
    </div>
    <div class="modal fade bs-example-modal-sm" id="Agregar" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 class="modal-title" id="H2">Asignar ruta a un bus</h4>
                </div>
                <div class="modal-body">
                    <div class="panel panel-info">
                        <div class="panel-heading">Informacion</div>
                        <div class="panel-body">
                            <div class="input-group">
                                <span class="input-group-addon">Conductor</span>
                                <input id="ttConductor" type="text" class="form-control" placeholder="">
                            </div><br/>
                            <div class="input-group">
                                <div class="input-group">
                                    <div class="input-group-btn">
                                        <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Buses<span class="caret"></span></button>
                                        <ul id="tBuses" class="dropdown-menu">
                                        </ul>
                                    </div><!-- /btn-group -->
                                    <input id="ttPlaca" type="text" class="form-control" readonly>
                                </div><!-- /input-group -->
                            </div><br/>                       
                            <div class="input-group">
                                <div class="input-group">
                                    <div class="input-group-btn">
                                        <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Rutas<span class="caret"></span></button>
                                        <ul id="tRutas" class="dropdown-menu">
                                        </ul>
                                    </div><!-- /btn-group -->
                                    <input id="ttNomRuta" type="text" class="form-control" readonly>
                                </div><!-- /input-group -->
                            </div><br/>
                            <button id="asigRuta" class="btn btn-default" data-dismiss="modal" onclick="AsignarBusARuta()">Asignar ruta</button>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
                </div>
            </div>
        </div>
    </div>
</body>
</html>